package com.beantest;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class LoggingAspect {

    @Before("execution(* com.beantest.UserService.*(..))")
    public void logBefore() {
        System.out.println("LoggingAspect: 方法执行前记录日志");
    }
}